/**
 * author 邵俊杰
 * createTime: 2021-11-01
 */
import http from '../../http.js'

// 获取验证码
export const mobileCode = (data) => http.sendRequest({ url: '/api/login/mobileCode', data, async: false })

/**
  *  主播关注
  *  web: 黄文杰
  *  php: 彭康
  */
export const addFollow = (data) => http.sendRequest({ url: '/api/MemberFollow/addMemberFollow', data, async: false })

/**
  *  获取内容分类
  *  web: 黄文杰
  *  php: 彭康
  */
export const getCategoryList = (data) => http.sendRequest({ url: '/api/content/categoryList', data, async: false })

// 获取主播推荐
export const getRecommendUser = (data = {}) => http.sendRequest({ url: '/api/live/recommendUser', data, async: false })
// // 获取关注正在直播的好友
export const getFollowingLive = (data = {}) => http.sendRequest({ url: '/api/live/followingLive', data, async: false })
// // 获取首页推荐列表
// export const getHomeRecommend = (data = {}) => http.sendRequest('api/live/homeRecommend', data, async: false )
// // 获取好货热播
export const getLiveList = (data = {}) => http.sendRequest({ url: '/api/live/list', data, async: false })

// 推荐内容
export const getContentList = (data) => http.sendRequest({ url: '/api/Content/getContentList', data, async: false })
// // 获取视频列表
// export const getHomeVideo = (data = {}) => http.sendRequest('api/content/homeRecommendVideo', data, async: false )

// 获取（附近）列表
export const getNearbyList = (data = {}) => http.sendRequest({ url: '/api/content/getNearbyList', data, async: false })
// // 城市列表
// export const getCityList = (data) => http.sendRequest('api/address/city', data, async: false )
// 关注列表
export const getMemberFollowContentPageList = (data) => http.sendRequest({
	url: '/api/MemberFollow/getMemberFollowContentPageList',
	data, async: false
})
// 获取直播详情
export const getLiveDetail = (data) => http.sendRequest({ url: '/api/live/detail', data, async: false })

// 关注用户
export const addMemberFollow = (data) => http.sendRequest({ url: '/api/MemberFollow/addMemberFollow', data , async: false})
// 取消关注
export const deleteMemberFollow = (data) => http.sendRequest({ url: '/api/MemberFollow/deleteMemberFollow', data , async: false})
// 获取内容详情 类型:graphic=图文,video=视频,live=直播
export const getGraphicAndVideoAndLiveInfo = (data) => http.sendRequest({url:'/api/content/getGraphicAndVideoAndLiveInfo', data, async: false })
// 获取视频列表
export const getGraphicAndVideoList = (data) => http.sendRequest({url:'/api/Content/getContentRandom', data, async: false})
// 获取礼物列表
export const getLiveGifts = (data) => http.sendRequest({ url: '/api/live/gifts', data, async: false })

// 短视频点赞
export const fabulousContent = (data) => http.sendRequest({ url: '/api/content/FabulousContent', data, async: false })

// 短视频收藏
export const collectContent = (data) => http.sendRequest({ url: '/api/content/CollectContent', data, async: false })

// 短视频评论列表
export const getCommentList = (data) => http.sendRequest({ url: '/api/content/getCommentList', data, async: false })

// 短视频评论列表点赞
export const fabulousComment = (data) => http.sendRequest({ url: '/api/content/FabulousComment', data, async: false })

// 短视频评论列表评论
export const pushComment = (data) => http.sendRequest({ url: '/api/content/pushComment', data, async: false })

// 获取腾讯IM需要用到的UserSig
export const getImUserSig = (data) => http.sendRequest({ url: '/api/live/userSig', data, async: false }).then(res => res.data)

// 送礼物
export const sendGift = (data) => http.sendRequest({ url: '/api/live/sendGift', data, async: false })
// 查红包
export const setSedPacketDetail = (data) =>http.sendRequest({ url: '/api/live/redPacketDetail', data, async: false }).then(res => res.data)

 
// 领红包
export const getRedPacket = (data) => http.sendRequest({ url: '/api/live/getRedPacket', data, async: false }).then(res => res.data)


// // 获取奖品列表
// export const getDrawsList = (data) => http.sendRequest('api/live/drawList', data, async: false )
// 参与抽奖
export const getDoDraws = (data) => http.sendRequest({ url: '/api/live/doDraw', data, async: false })
// // 抽奖地址设置
// export const getDrawsRewardAddr = (data) => http.sendRequest('api/live/drawRewardAddr', data, async: false )
// // 直播预告
export const getNoticeList = (data) => http.sendRequest({ url: '/api/content/getNoticeList', data, async: false })
// // 获取报名信息
// export const getSignUp = (data) => http.sendRequest('api/live/signUp', data, async: false )
// // 填写报名信息
// export const psotSetSign = (data) => http.sendRequest('api/live/setSign', data, async: false )
//个人创作中心
export const getissubscribe = (data) => http.sendRequest({ url: '/api/shopmember/issubscribe', data, async: false })
export const getshopinfo = (data) => http.sendRequest({ url: '/api/shop/baseinfo', data, async: false })
export const delFollowBtn = (data) => http.sendRequest({ url: '/api/shopmember/delete', data, async: false })
export const addFollowBtn = (data) => http.sendRequest({ url: '/api/shopmember/add', data, async: false })
export const getMemberWorks = (data) => http.sendRequest({ url: '/api/Content/getMemberWorks', data, async: false })
export const getGoodssku = (data) => http.sendRequest({ url: '/api/Goodssku/page', data, async: false })
//图文详情
export const getcontent = (data) => http.sendRequest({ url: '/api/content/getGraphicAndVideoAndLiveInfo', data, async: false })
export const getCommentsList = (data) => http.sendRequest({ url: '/api/content/getCommentList', data, async: false })
export const checkMemberFollow = (data) => http.sendRequest({ url: '/api/MemberFollow/checkMemberFollow', data, async: false })
export const addFollowsBtn = (data) => http.sendRequest({ url: '/api/MemberFollow/addMemberFollow', data, async: false })
export const clickRequest = (data) => http.sendRequest({ url: '/api/content/pushComment', data, async: false })
//搜索
export const search = (data) => http.sendRequest({ url: '/api/search/getContentSearchList', data, async: false })
export const searchElse = (data) => http.sendRequest({ url: '/api/search/getGoodsSearchList', data, async: false })
export const getMemberSearchList = (data) => http.sendRequest({ url: '/api/search/getMemberSearchList', data, async: false })
export const getShopSearchList = (data) => http.sendRequest({ url: '/api/search/getShopSearchList', data, async: false })

/**
 * 为你推荐商品列表
 * web：黄文杰
 * PHP：彭康
 */
export const getGoodsSkuList = (data) => http.sendRequest({ url: '/api/goodssku/page', data, async: false })

/**
 * 为你推荐分类
 * web：黄文杰
 * php：彭康
 */
export const getGoodscategory = (data) => http.sendRequest({ url: '/api/goodscategory/tree', data, async: false })

/**
 * 为你推荐
 * web：黄文杰
 * php：彭康
 */
export const getGoodsrecommend = (data) => http.sendRequest({ url: '/api/goods/recommend', data, async: false })

/**
 * 企业购商品列表接口
 * web:黄文杰
 * php:彭康
 */
export const getEnterpriseGoodsList = (data) => http.sendRequest({ url: '/api/goods/enterpriseGoodsList', data, async: false })

/**
 * 首页获取企业标签接口（无需参数）
 * web:黄文杰
 * php:彭康
 */
export const getEnterpriseTabs = (data) => http.sendRequest({ url: '/api/goods/indexClass', data, async: false })

/**
 * 首页获取商品分类列表
 * web:黄文杰
 * php:彭康
 */
export const getScreenList = (data) => http.sendRequest({ url: '/api/Goodscategory/tree', data, async: false })

/**
 * 申请企业购状态
 * web:黄文杰
 * php:彭康
 */
export const getEnterpriseStatus = (data) => http.sendRequest({ url: '/api/company/get_company_status', data, async: false })

/**
 * 企业购获取节省金额
 * web:黄文杰
 * php:彭康
 */
export const getEconomy = (data) => http.sendRequest({ url: '/api/member/economy', data, async: false })

/**
 * 加入购物车
 * web:黄文杰
 * php:彭康
 */
export const addCartFast = (data) => http.sendRequest({ url: '/api/cart/add', data, async: false })